#include "widgetshowcontrolform.h"
#include "ui_widgetshowcontrolform.h"

widgetShowControlForm::widgetShowControlForm(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::widgetShowControlForm)
{
    ui->setupUi(this);

    QVBoxLayout* ground_layout = new QVBoxLayout(ui->widget_ground_display);
    ground_layout->addWidget(&this->m_groundStation);
    ui->widget_ground_display->setLayout(ground_layout);

    QVBoxLayout* visibility_layout = new QVBoxLayout(ui->widget_visibility_display);
    visibility_layout->addWidget(&this->m_visibility);
    ui->widget_visibility_display->setLayout(visibility_layout);

    QVBoxLayout* radar_layout = new QVBoxLayout(ui->widget_radar_display);
    radar_layout->addWidget(&this->m_scatterLidar);
    ui->widget_radar_display->setLayout(radar_layout);

    QVBoxLayout* solarrad_layout = new QVBoxLayout(ui->widget_solar_display);
    solarrad_layout->addWidget(&this->m_solarradioMeter);
    ui->widget_solar_display->setLayout(solarrad_layout);

    //connect(this, &widgetShowControlForm::Sig_DeviceVisibilityProtocol, &this->m_visibility, &VisibilityDisplayForm::slot_Receive_DeviceVisibilityProtocol);
    //为什么这个是信号，可以看"GroundWeatherStationDisplayForm::sig_updateChats"的注释
    // connect(this, &widgetShowControlForm::Sig_DeviceGroundWeatherStationProtocol, &this->m_groundStation, &GroundWeatherStationDisplayForm::sig_updateChats);

    // connect(this, &widgetShowControlForm::Sig_DeviceSolarRadioMeterProtocolNSU, &this->m_solarradioMeter, &SolarRadiometerDisplayForm::slot_Recive_DeviceSolorRadioMeterProtocolNSU);
    // connect(this, &widgetShowControlForm::Sig_DeviceSolarRadioMeterProtocolSTA, &this->m_solarradioMeter, &SolarRadiometerDisplayForm::slot_Recive_DeviceSolorRadioMeterProtocolSTA);
    // connect(this, &widgetShowControlForm::Sig_DeviceSolarRadioMeterProtocolAOD, &this->m_solarradioMeter, &SolarRadiometerDisplayForm::slot_Recive_DeviceSolorRadioMeterProtocolAOD);
    // connect(this, &widgetShowControlForm::Sig_DeviceSolarRadioMeterProtocolATR, &this->m_solarradioMeter, &SolarRadiometerDisplayForm::slot_Recive_DeviceSolorRadioMeterProtocolATR);
    // connect(this, &widgetShowControlForm::Sig_DeviceSolarRadioMeterProtocolLAT, &this->m_solarradioMeter, &SolarRadiometerDisplayForm::slot_Recive_DeviceSolorRadioMeterProtocolLAT);
    // connect(this, &widgetShowControlForm::Sig_DeviceSolarRadioMeterProtocolLON, &this->m_solarradioMeter, &SolarRadiometerDisplayForm::slot_Recive_DeviceSolorRadioMeterProtocolLON);


}

widgetShowControlForm::~widgetShowControlForm()
{
    delete ui;
}
